function  rem(){
    let width=document.documentElement.clientWidth

    //设置html的fontsize
    document.documentElement.style.fontSize=width/19.2+"px"
}
rem()

window.onresize=rem